import {AfterViewInit, Component, Input, OnInit} from '@angular/core';
import {DynamicComponentOptions} from '../dynamic-component/dynamic-component.interface';

@Component({
  selector: 'ng-tools-popovers',
  templateUrl: './popovers.component.html',
  styleUrls: ['./popovers.component.scss']
})
export class PopoversComponent implements OnInit, AfterViewInit {
  @Input() title: string;
  @Input() content: { data: any; dynamicComponent?: DynamicComponentOptions };
  hidden = true;

  constructor() {
  }

  ngOnInit() {
  }

  ngAfterViewInit(): void {
  }

  toggle() {
    this.hidden = this.hidden === false;
  }

}



